<?php if (!defined('THINK_PATH')) exit();?><html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="viewport" content="width=device-width,height=device-height,inital-scale=1.0,maximum-scale=1.0,user-scalable=no;">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="format-detection" content="telephone=no">

    <title>确认下单</title>
    <script src="//libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
    <link rel="stylesheet" href="/Public/Css/pay.css?id=11" />
    <!--标准mui.css-->
    <link rel="stylesheet" href="/Public/Css/css/mui.min.css">
    <style>
        body{background-color: #FFF;
            height: 100%;}
        .submit{
            background-color: #14b941!important;
            border:none!important;
            color: #FFF!important;
        }
        .zt {
            height: 100%;
            margin-bottom: 100px;
        }
    </style>
    <script src="/Public/js/mui.min.js"></script>
    <!--标准muiEND-->
    <script>
        function zf(){

            $.ajax({
                type: "POST",
                url: "/index.php?s=/Index/yy/id/<?php echo ($id); ?>",

                cache: false,
                dataType: "json",
                data: $('#tab').serialize(),

                success: function(data) {
                    location.href="/index.php?s=/Index/newPay/orderid/<?php echo ($order['id']); ?>";

                    //  $('#submit').attr('onclick','()');
                    //  $('#submit').val('请等待客服人员与您联系');
                    // alert('您的订单已提交成功，请等待客服确认信息。订单通过后会在公众号主页面生成【订单状态更新】通知，点击付款后视为预约成功。司机会在发车前半小时与您联系，请保持电话畅通，以免耽误您的行程');
                }
            });

        }


    </script>
</head>
<body>

<div class="zt">

    <div style="width: 100%;text-align: center">

        <br />
        <div>订单确认</div>
    </div>

    <div class="cardexplain">

        <ul class="round">

            <li class="nob xiadan-form">
                <table>

                    <tr><td>
                        <form role="form" id="tab">
                            <span><font >出发地：</font><?php echo ($order['start']); ?></span>
                            <span><font>目的地：</font><?php echo ($order['end']); ?></span>
                            <span><font >预约时间：</font><?php echo ($order['starttime']); ?></span>
                            <span><font color="blue">订单类型：</font><?php echo ($order['fs']); ?></span>
                            <?php if($order['fs'] != '代运订单'): ?><span><font >成人：</font><?php echo ($order['num']); ?>人;<font color="blue">儿童：</font><?php echo ($order['child']); ?>人</span>
                                <?php elseif($order['fs'] == '代运订单'): ?>
                                <span><font>收货人：</font><?php echo ($order['xingming']); ?>;<font color="blue">电话：</font><?php echo ($order['dianhua2']); ?></span><?php endif; ?>

                            <span><font >价  格：</font>￥<?php echo ($order['price']); ?></span>
                            <span><font>联系方式：</font><?php echo ($lx['name']); ?>:<a href="tel:<?php echo ($order['dianhua']); ?>"><?php echo ($order["mobile"]); ?></a></span>
                            <input type="hidden" name="orderid" id='orderid' value="<?php echo ($order['orderid']); ?>">
                            <!-- <span><font >航  班：</font><?php echo ($order['hangban']); ?></span> -->
                            <span><font>备  注：</font><?php echo ($order['crc']); ?></span>

                            <input type="hidden" name="orderid" id="orderid" value="<?php echo (session('orderid')); ?>"/>

                        </form>

                        <td></tr>
                </table>


        </ul>


    </div>



    <div id="payDom"class="cardexplain">
        <div class="footReturn"style="text-align:center">
            <input type="button" onclick="zf()" class="submit" id="submit" value="确认下单"/>


        </div>
    </div>
    <div class="foots"><span>支付完成后，如需退款请及时联系客服</span></div>

    <div class="footer">

        <span></span>
    </div>
    <div style="clean:both"></div>
</div>
<!-- <link rel="stylesheet" type="text/css" href="/Public/Css/css/mui.min.css"> -->
<link rel="stylesheet" href="//at.alicdn.com/t/font_742744_grqfklr7az.css" />
<style>
    .mui-tab-item .iconfont {
    font-size: 28px;
    margin-bottom: 3px;
    display: block;
}
.mui-tab-item .mui-tab-label {
    font-size: 12px;
}
.mui-bar { 
    -webkit-box-shadow: 0 0 1px rgba(0, 0, 0, 0.13);
    box-shadow: 0 0 1px rgba(0, 0, 0, 0.13); 
}
.mui-bar-tab{
    height: 55px;
}
</style>
<nav class="mui-bar mui-bar-tab bottom-bar footer-bar">

        <a class="mui-tab-item " href="/index.php?s=/Index/index">
                <span class="iconfont icon-car">
        </span>
            <span class="mui-tab-label">乘车</span>
        </a>
        <a class="mui-tab-item "  href="/index.php?s=/Index/order">
            <span class="iconfont icon-icon-"></span>
            <span class="mui-tab-label">我的订单</span>
        </a>
   
        <a class="mui-tab-item " href="/index.php?s=/Index/myinfo">
            <span class="iconfont icon-gerenzhongxin "></span>
            <span class="mui-tab-label">个人中心</span>
        </a>
    </nav>

    <script>
       mui('body').on('tap','a',function(){window.location.href=this.href;});
    </script>
</body>
</html>